#include "get/Get.h"
#include "NodeHandler.h"
#include "globalinfo.h"
#include <iostream>
MAKE_CLI_EXECUTOR(Get, "get", "get a file from master", {
    if (args.size() < 2) {
        std::cout << "Usage : get [filepath]" << std::endl;
        return;
    }
    std::string path = globalInfo.path.getPath() + "/" + args[1];
    nodeHandler.executeClientTask(TaskFlag::get, path.c_str(), path.length());
})
